Skip to main content

String Document

A string document is design to write and read a bytes stream of various content.

Content definition

This document can be the media of various raw content, which are definined by:

  • a format: define the type of the raw content, ex: plain, json, html, jpg, ...
  • an encoding: define how the raw content is packed, can have nested layers, ex: gzip, rsa, utf-8, us-ascii, ...